FROM hub.xy.com/app/nginx-base:0.0.1

RUN groupadd -g 2088 nginx && useradd -g nginx -s /usr/sbin/nologin -u 2088 nginx && chown -R nginx.nginx /apps/nginx
ADD nginx.conf /apps/nginx/conf/
ADD frontend.tar.gz /apps/nginx/html/

ENTRYPOINT ["/apps/nginx/sbin/nginx","-g","daemon off;"]
